<?php
require_once VIEW_PATH . '/header.php'
?>

<div class="page-header">

    <?php foreach ($this->category as $item) {
        if ($item->id == 7) {
            ?>
            <div class="bg" data-aos="zoom-in" style="background-image: url('<?php echo $item->images[0] ?>')"></div>
            <div class="container" data-aos="fade-down">
                <div class="title"><?php echo $item->title ?></div>
                <div class="desc" data-aos="fade-left"></div>
            </div>
            <?php
        }
    } ?>

</div>
<style>

</style>
<div class="page-content">
    <div class="container">
        <div class="download-list">
            <?php foreach ($data as $k => $item) {
                ?>
                <div class="download-item">
                    <a href="<?php echo $item->file ?>" class="download-link">
                        <div class="download-title" data-aos="fade-right"><?php echo $item->title ?></div>
                        <div class="download-desc" data-aos="fade-left">Uploaded time：<?php echo $item->created_time ?></div>
                    </a>
                </div>
                <?php
            } ?>

        </div>
    </div>
</div>

<?php
require_once VIEW_PATH . '/footer.php' ?>
